<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>影院</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(function() {
	if($("input[name='isNormal']:checked").val() == '<%=StaticValue.DIC_TRUE_OR_FALSE_NUM_0%>'){
		$("input[name='exceptionReason']").attr("disabled","disabled");
	}
	$("input[name='isNormal']").change(function(){
		if($(this).val() == "0"){
			$("input[name='exceptionReason']").attr("disabled","disabled").removeAttr("datatype");
		}else{
			$("input[name='exceptionReason']").removeAttr("disabled").attr({"datatype":"*"});
		}
	});
<%--	setTimeout(function(){--%>
<%--		$("input[name='province.id']").attr({"datatype":"*","nullmsg":"请选择省市"});--%>
<%--	},2000);--%>
});
</script>
</head>
<body>
	<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="zyCinemaController.do?doAdd" tiptype="3">
		<input id="id" name="id" type="hidden" value="${zyCinemaPage.id }">
		<table  cellpadding="0" cellspacing="1" class="formtable">
			<tr>
				<td align="right" style="width: 100px;">
					<label class="Validform_label">影院中文名称: </label>
				</td>
				<td class="value" style="width: 300px;">
					<input id="name" name="name" type="text" style="width: 260px" class="inputxt" datatype="*" ajaxurl="zyCinemaController.do?checkCinemaNameUnique">
				</td>
				<td align="right" style="width: 100px;">
					<label class="Validform_label">影院英文名称: </label>
				</td>
				<td class="value" style="width: 300px;">
					<input id="ename" name="ename" type="text" style="width: 150px" class="inputxt" >
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label">影院推广名称: </label>
				</td>
				<td class="value">
					<input id="spreadName" name="spreadName" type="text" style="width: 260px" class="inputxt" datatype="*" >
				</td>
				<td align="right">
					<label class="Validform_label"> 所属机构:</label>
				</td>
				<td class="value" id="org">
					<input name="belongOrg.id" type="hidden" id="belongOrg" />
			        <input name="shortname" class="inputxt" id="shortname" readonly="readonly" />
			  		<t:choose hiddenName="belongOrg" hiddenid="id" url="zyContactsController.do?zyOrgs" name="orgList" width="400px" height="550px"
			                          icon="icon-search" title="机构列表" textname="shortname" isclear="true" />
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label">所在省市:</label>
				</td>
				<td class="value">
<%--					<t:comboTree url="territoryController.do?getTerritoryTree" name="province.id" id="province" multiple="false" width="155" />--%>
					<input id="tsTerritoryId" name="province.id" type="hidden" />
					<input id="tsTerritoryName" type="text" readonly="readonly" style="width: 150px" class="inputxt" datatype="*" nullmsg="请选择市 "/>
					<t:choose hiddenName="tsTerritoryId" hiddenid="id" inputTextname="tsTerritoryName" textname="text"  
						title="机型" url="territoryController.do?goChooseTerritoryForCm" name="chooseTerritoryList" width="600px" height="600px"
						icon="icon-search"  isclear="true" />
					<span class="Validform_checktip"></span>
				</td>
				<td align="right"><label class="Validform_label">地址:</label>
				</td>
				<td class="value">
					<input id="address" name="address" type="text" style="width: 260px" class="inputxt" datatype="*" nullmsg="请填写地址"/>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">电话:</label>
				</td>
				<td class="value">
					<input id="phone" name="phone" type="text" style="width: 150px" class="inputxt" />
				</td>
				<td align="right"><label class="Validform_label">传真: </label>
				</td>
				<td class="value">
					<input id="fax" name="fax" type="text" style="width: 150px" class="inputxt" />
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label">影院编码:</label>
				</td>
				<td class="value">
					<input id="code" name="code" type="text" style="width: 150px" class="inputxt" />
				</td>
				<td align="right">
					<label class="Validform_label"> 服务状态:</label>
				</td>
				<td class="value">
					<t:dictSelect field="isService" type="select" typeGroupCode="<%=StaticValue.DIC_CINEMA_SERVICE %>"  hasPleaseSelect="false"/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 是否异常:
					</label>
				</td>
				<td class="value">
					<t:dictSelect field="isNormal" type="radio" typeGroupCode="<%=StaticValue.DIC_TRUE_OR_FALSE_NUM %>" defaultVal="<%=StaticValue.DIC_TRUE_OR_FALSE_NUM_0 %>"  hasPleaseSelect="false"/>
				</td>
				<td align="right">
					<label class="Validform_label">异常原因:</label>
				</td>
				<td class="value">
					<input id="exceptionReason" name="exceptionReason" type="text" style="width: 150px" class="inputxt" />
					<span class="Validform_checktip"></span>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label">是否有TMS:</label>
				</td>
				<td class="value">
					<t:dictSelect field="isTms" type="select" typeGroupCode="<%=StaticValue.DIC_TRUE_OR_FALSE_NUM %>"  />
				</td>
				<td align="right">
					<label class="Validform_label">是否有NOC: </label>
				</td>
				<td class="value">
					<t:dictSelect field="isNoc" type="select" typeGroupCode="<%=StaticValue.DIC_TRUE_OR_FALSE_NUM %>"  />
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label">经纬度:</label>
				</td>
				<td class="value">
					<input id="latitude" name="latitude" type="text" style="width: 150px" class="inputxt" />
				</td>
				<td align="right">
					<label class="Validform_label">经营方式:</label>
				</td>
				<td class="value">
					<t:dictSelect field="business" type="select" typeGroupCode="<%=StaticValue.DIC_BUSINESS_WAY %>"  />
				</td>
			</tr>
		</table>
	</t:formvalid>
</body>
